package com.ymttest.database.sqlwapper;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmlCreateRole;

public class YmlCreateRoleIMapper {
	SqlManager manage;

	public YmlCreateRoleIMapper() {
		manage = new SqlManager("Ymt_SellerAuth");
	}
	/*
	 * 根据主账号ID查询子账号信息
	 */
	public List<YmlCreateRole> selectCreateRoleSellerId(String roleName) throws InterruptedException {
	    @SuppressWarnings("unchecked")
	    List<YmlCreateRole>  roleNames = manage.getSelectResults(
	            "com.ymttest.database.mapping.YmlCreateRoleMapper.selectCreateRoleSellerId", roleName);
	    manage.commit();
	    return roleNames;
	}
	
	public List<YmlCreateRole> selectCreateRoleIsdeleted(Integer sellerID) throws InterruptedException {
	    @SuppressWarnings("unchecked")
	    List<YmlCreateRole>  sellerIDs = manage.getSelectResults(
	            "com.ymttest.database.mapping.YmlCreateRoleMapper.selectCreateRoleIsdeleted", sellerID);
	    manage.commit();
	    return sellerIDs;
	}
	

}
